/**
 * 我的日程模块
 */
import request from '@/utils/request'

/**
 * 新增计划
 * @param {*} data 
 * @returns 
 */
export const addPlay = data => { 
    return request({ 
        method:'post',
        url:'/dayplay/addPlay',
        data
    })
}


/**
 * 获取某一用户的所有计划安排
 * @param {*} params 
 * @returns 
 */
export const getAllPlay = params => { 
    return request({ 
        method:'get',
        url:'/dayplay/getAllPlay',
        params
    })
}


/**
 * 更新计划
 * @param {*} data 
 * @returns 
 */
export const updatePlay = data => { 
    return request({ 
        method:'post',
        url:'/dayplay/updatePlay',
        data
    })
}


/**
 * 删除计划
 * @param {*} params 
 * @returns 
 */
export const deletePlay = params => { 
    return request({ 
        method:'get',
        url:'/dayplay/deletePlay',
        params
    })
}


/**
 * 获取当前时间的计划安排
 * @param {*} params 
 * @returns 
 */
export const getPlayByTime = params => { 
    return request({ 
        method:'get',
        url:'/dayplay/getPlayByTime',
        params
    })
}